
//package com.kimo.shop.user.api.controller;
//
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
//import com.baomidou.mybatisplus.core.metadata.IPage;
//import SysLog;
//import PageParam;
//import com.kimo.shop.score.comment.dto.ScoreLuckUserDto;
//import com.kimo.shop.score.comment.model.ScoreLuckUser;
//import com.kimo.shop.score.comment.service.ScoreLuckUserService;
//import SecurityUtils;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import lombok.AllArgsConstructor;
//import org.springframework.http.ResponseEntity;
//import org.springframework.security.access.prepost.PreAuthorize;
//import org.springframework.web.bind.annotation.*;
//
//import javax.validation.Valid;
//
//
///**
// * 积分抽奖记录
// *
// * @author kimo-taozhouchuan
// * @date 2019-12-25 10:27:46
// */
//@RestController
//@AllArgsConstructor
//@Api(tags = "积分抽奖记录接口")
//@RequestMapping("/p/score/scoreLuckUser" )
//public class ScoreLuckLogController {
//
//    private final ScoreLuckUserService scoreLuckUserService;
//
//    /**
//     * 分页查询
//     * @param page 分页对象
//     * @return 分页数据
//     */
//    @GetMapping("/page" )
//    @ApiOperation(value = "积分抽奖记录列表", notes = "积分抽奖记录列表")
//    public ResponseEntity<IPage<ScoreLuckUser>> getScoreLuckUserPage(PageParam<ScoreLuckUser> page) {
//        String userId = SecurityUtils.getUser().getUserId();
//        return ResponseEntity.ok(scoreLuckUserService.page(page
//                ,new LambdaQueryWrapper<ScoreLuckUser>().eq(ScoreLuckUser::getUserId,userId)));
//    }
//
//}
